<template>
  <div id="users">
    <div class="search_box">
      <input
        class="search_txt"
        type="text"
        name=""
        placeholder="Type to search"
      />
      <a class="search_btn" href="#">
        <i class="fa fa-search"></i>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: "users",
};
</script>

<style>
.search_box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #2f3640;
  height: 40px;
  border-radius: 40px;
  padding: 10px;
}

.search_btn {
  color: #e84118;
  float: right;
  width: 40px;
  height: 40px;
  text-decoration: none;
  border-radius: 50%;
  background-color: #2f3640;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.4s;
}

.search_box:hover > .search_txt {
  width: 240px;
  padding: 0 6px;
}

.search_box:hover > .search_btn {
  background-color: white;
}

.search_txt {
  border: none;
  background: none;
  outline: none;
  float: left;
  padding: 0;
  color: white;
  font-size: 16px;
  transition: 0.4s;
  line-height: 40px;
  width: 0;
}

.out_box:hover {
  background-color: white;
  color: red;
  transition: 0.2s;
}
</style>
